package chapter01

object Test15_For {
  def main(args: Array[String]): Unit = {
    //标准写法
    for(i<- 1 to 3){
      for(j<- 1 to 2){
        print(s"i=${i},j=${j}\t")
      }
    }
    println()
    for {i<-1 to 3
         j<-1 to 2}{
      print(s"i=${i},j=${j}\t")
    }
  }
}
